package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.PartInfoDao;
import cn.ligoo.part.domain.PartInfo;
import cn.ligoo.part.service.PartInfoService;

/**
 * @author Jin,QingHua
 * @version 2012-07-17 16:46:31
 */
@Service
public class PartInfoServiceImpl implements PartInfoService {

	@Resource
	private PartInfoDao partInfoDao;

	@Override
	public Integer createPartInfo(PartInfo t) {
		this.partInfoDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifyPartInfo(PartInfo t) {
		return this.partInfoDao.updateEntity(t);
	}

	@Override
	public int removePartInfo(PartInfo t) {
		return this.partInfoDao.deleteEntity(t);
	}

	@Override
	public PartInfo getPartInfo(PartInfo t) {
		return this.partInfoDao.selectEntity(t);
	}

	@Override
	public Integer getPartInfoCount(PartInfo t) {
		return this.partInfoDao.selectEntityCount(t);
	}

	@Override
	public List<PartInfo> getPartInfoList(PartInfo t) {
		return this.partInfoDao.selectEntityList(t);
	}

}
